using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Localization;
using SinBiota.Model.Entities.CustomAttributes;


namespace SinBiota.Model.Entities
{
    [LocalizedName("Publication", NameResourceType = typeof(Strings))]
    public class Publication : BaseEntity 
    {

        [LocalizedName("Title", NameResourceType = typeof(Strings))]
        [Required(ErrorMessageResourceType = typeof(Messages), ErrorMessageResourceName = "FieldCannotBeEmpty")]
        public virtual string Title { get; set; }

        [LocalizedName("Journal", NameResourceType = typeof(Strings))]
        public virtual string Journal { get; set; }

        [LocalizedName("Number", NameResourceType = typeof(Strings))]
        public virtual string Number { get; set; }

        [LocalizedName("Abstract", NameResourceType = typeof(Strings))]
        public virtual string Abstract { get; set; }

    }
}

